OpenStack Juno : Configure Keystone#1
2015/06/05 |
Install and Configure OpenStack Identity Service (Keystone).
|
|
[1] | Install Keystone. |
[root@dlp ~]# dnf -y install openstack-keystone openstack-utils
|
[2] | Add a User and Database on MariaDB for Keystone. |
[root@dlp ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 11 Server version: 10.0.19-MariaDB MariaDB Server Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
create database keystone; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on keystone.* to keystone@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on keystone.* to keystone@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[3] | Configure Keystone. |
[root@dlp ~]#
vi /etc/keystone/keystone.conf # line 13: uncomment and change to any Token admin_token= admintoken
# line 633: uncomment and change the info ( the one for MariaDB ) connection= mysql://keystone:password@localhost/keystone
# line 1434: uncomment and add token_format= PKI
# line 1440: uncomment all and change to your locations like below certfile=/etc/keystone/ssl/certs/signing_cert.pem keyfile=/etc/keystone/ssl/private/signing_key.pem ca_certs=/etc/keystone/ssl/certs/ca.pem ca_key=/etc/keystone/ssl/private/cakey.pem key_size=2048 valid_days=3650 cert_subject= /C=JP/ST=Hiroshima/L=Hiroshima/O=Server_World/CN=dlp.srv.world
keystone-manage pki_setup --keystone-user keystone --keystone-group keystone [root@dlp ~]# keystone-manage db_sync [root@dlp ~]# systemctl start openstack-keystone [root@dlp ~]# systemctl enable openstack-keystone |